/**
 * 
 */
package org.cuatrovientos.methods;

/**
 * Simple class to show the use of methods
 * @author alouis_fernandez
 */
public class Methods {
	
	/**
	 * Shows hello on console.
	 */

	public static void sayHello () {
		System.out.println("Say hello");
	}
	
	
	/**
	 * Shows something on console.
	 * @param something
	 */
	public static void saySomething(String something) {
		System.out.println(something);
	}
	
	
	/**
	 * Shows something on console. X times
	 * @param something
	 * @param times
	 */
	public static void sayTimes(String something, int times) {
		for (int i = 0; i < times; i++){
			System.out.println(something);
		}
		
	}
	
	
	/**
	 * Adds to integer numbers
	 * @param String array
	 */
	public static void showArray (int [] numbers) {
		for (int i = 0; i < numbers.length; i++){
			System.out.println(numbers[i]);
		}
	}
	
	
	/**
	 * Adds to integer numbers
	 * @param a
	 * @param b
	 * @return the result
	 */
	public static int add (int a, int b) {
		int result = 0;
		result = a+b;
		return result;
	}
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Methods.sayHello();
		Methods.saySomething("Gilipozze");
		Methods.sayTimes("PLAS!",10);
		System.out.println(Methods.add(5, 6));
	}

}
